<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Admin extends Authenticatable
{
    protected $dateFormat = 'U';
    protected $guarded= 'admin';

    protected $fillable = [
        'username', 'password',
    ];

    protected $hidden = [
        //remember_token 字段用于记住我的功能
        'password', 'remember_token',
    ];

    public static $rules = [
        'username'  => 'required',
        'password'  => 'required',
    ];
}
